package cc.zy.base.hr.service.impl;

import cc.zy.base.hr.entity.DraftPlan;
import cc.zy.base.hr.entity.HRDictionary;
import cc.zy.base.hr.mapper.HRDictionaryMapper;
import cc.zy.base.hr.service.IHRDictionaryService;
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zhang
 * @time 2022/03/09 20:17:16
 */
@Service
@RequiredArgsConstructor
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class HRDictionaryServiceImpl extends ServiceImpl<HRDictionaryMapper, HRDictionary> implements IHRDictionaryService {

    @Resource
    private final HRDictionaryMapper hrDictionaryMapper;

    @Override
    public List<HRDictionary> findHRDictionaryList(String HRDictionaryType) {

        List<HRDictionary> hrDictionaryList = hrDictionaryMapper.findHRDictionaryList(HRDictionaryType);
        log.debug("查询到的类型是："+ hrDictionaryList);
        return hrDictionaryList;
    }
}
